import render from '@/utils/render'
import dict from '@/utils/dict'

export const tableColumn = [
  { type: 'selection', width: '50', label: '' },
  { type: 'index', width: '80', label: '序号' },
  { prop: 'name', label: '名字' },
  { prop: 'alias', label: '别名' },
  { prop: 'roles', label:'职业',
    formatter:(row,column,cellVal,index) => {
      return render.renderDict(cellVal,dict.roles)
    } 
},
  { prop: 'couponPrice', label: '点卷' },
  { prop: 'goldPrice', label: '金币' },
  { label:'头像', slot:'championImg' },
  { prop: 'keywords', label: '描述关键字' },

  // {
  //   width: '120',
  //   label: '操作',
  //   buttons: [
  //     { name: '编辑', type: 'success', command: 'edit' },
  //     { name: '删除', type: 'danger', command: 'delete' }
  //   ]
  // }
] as Table.Column[]